<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/common/taglibs.jsp" %>
<script type="text/javascript">
<!--
	function checkRepeat(){
		
	}
//-->
</script>
<div class="page">
	<div class="pageContent">
		<form id="userInfo" method="post" action="${ctx }/account/user!save.action" class="pageForm required-validate" onsubmit="return validateCallback(this,navTabAjaxDone);">
			<input type="hidden" name="id" value="${id }"/>
			<input type="hidden" name="navTabId" value="userList"/>
			<div class="pageFormContent" layoutH="56">
				<p>
					<label>登 录 名：</label>
					<input name="loginName"  class="required" type="text" size="30" value="${loginName}" alt="请输入登录名" onblur="checkRepeat(this);"/>
				</p>
				<p>
					<label>姓 名：</label>
					<input name="name" class="required" type="text" size="30" value="${name}" alt="请输入真实姓名"/>
				</p>
				<p>
					<label>密 码：</label>
					<input name="password" id="password" class="required" type="text" size="30" value="${password}"/>
				</p>
				<p>
					<label>手 机：</label>
					<input name="mobile" value="${mobile}" class="mobile" type="text" size="30" />
		
				</p>
				<p>
					<label>确认密码：</label>
					<input type="text" name="passwordConfirm" value="${password}"  class="required" equalTo="#password" size="30"/>
	
				</p>
				<p>
					<label>电子邮箱：</label>
					<input type="text" class="email" name="email" value="${email}" size="30" />
				</p>
				<p>
					<label>所在部门：</label>
					<input type="hidden" id="orgId" name="orgId" size="40" value="${organization.id}"/>
					<input type="text"  id="orgName" name="orgName"  value="${organization.name}" class="required" size="30" />
					<a class="inputButton" href="${ctx }/common/organization-ui!getOrgUL.action?code=ROOT&idInput=orgId&nameInput=orgName&form=userInfo&dlgID=userDlgOrg" target="dialog" rel="userDlgOrg">选择部门</a>
				</p>
				<p>
					<label>固定电话：</label>
					<input type="text" class="telephone" name="phone" value="${phone}" size="30" />
				</p>
				<div>
					<label>角 色：</label>
					<s:checkboxlist name="checkedRoleIds" list="allRoleList" listKey="id" listValue="name" theme="custom"/>
				</div>
			</div>
			<div class="formBar">
				<ul>
					<!--<li><a class="buttonActive" href="#"><span>保存</span></a></li>-->
					<li><div class="buttonActive"><div class="buttonContent"><button type="submit">保存</button></div></div></li>
					<li>
						<div class="button"><div class="buttonContent"><button type="Button" onclick="navTab.closeCurrentTab()">取消</button></div></div>
					</li>
				</ul>
			</div>
		</form>
	</div>
</div>